package com.lxw.manage_cms.controller;

import com.lxw.api.course.SysDictionaryControllerApi;
import com.lxw.framework.domain.system.SysDictionary;
import com.lxw.manage_cms.service.ISysDictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("sys")
public class SysDictionaryController implements SysDictionaryControllerApi {

        @Autowired
        ISysDictionaryService sysDictionaryService;

        @GetMapping("/dictionary/get/{dType}")
        @Override
        public SysDictionary getDictionary(@PathVariable String dType) {

            SysDictionary sysDictionary = sysDictionaryService.getDictionary(dType);
            return sysDictionary;
        }



}
